const koaJwt = require('koa-jwt')

const jwtAuth = koaJwt({
    secret: "ikzhj",
    algorithms: ["HS256"]
}).unless({
    path: ["/users/login",'/train/getall']
})

module.exports = jwtAuth